import {RouterModule} from "@angular/router";
import {ArticleDetailComponent} from "./article-detail/article-detail.component";
import {ArticleCommentComponent} from "./article-comment/article-comment.component";
import {ArticleComponent} from "./article.component";
import {ArticleWriteComponent} from "./article-write/article-write.component";
import {userActiveInter} from "../intercept/route/userActiveInter";

export const articleRoutesConfig=[
    {
		path:'article',
        // component:ArticleListComponent,
		children:[
			{ path: '', 	component:ArticleComponent},
	    	{ path: 'comment', component:ArticleCommentComponent},
			{ path: 'detail', 	component:ArticleDetailComponent},
			{ path: 'write', 	component:ArticleWriteComponent,canActivate:[userActiveInter]},
			{ path: '**', 	component:ArticleComponent}
	    ]
	}
]